Skip to content

fix Integration test failed for default data source - #1850

Open
Qxisylolo wants to merge 1 commit into
opensearch-project:mainfrom
Qxisylolo:fix/default_ds_tests
Open

fix Integration test failed for default data source#1850
Qxisylolo wants to merge 1 commit into
opensearch-project:mainfrom
Qxisylolo:fix/default_ds_tests

Conversation

@Qxisylolo

@Qxisylolo Qxisylolo commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Description

This pr fixes Integration test failed for default data source.

截屏2025-10-04 23 25 37

Issues Resolved

[List any issues this PR will resolve]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Comment on lines -13 to +18
// Clean up before creating new data sources for testing
cy.deleteAllDataSourcesOnUI();
// Clean up after all test are run
cy.deleteAllDataSources();
// remove the default data source
cy.setAdvancedSetting({
defaultDataSource: '',
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the behavor of delete datasource on ui about the datasource

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my local testing, both methods work, but deleting the data source in the UI behaves inconsistently and results in flaky errors more often

@SuZhou-Joe

Copy link
Copy Markdown
Member

The CI group 4 failed due to a modal in home page, irrelevant to the changes of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants